
project(base)

include_directories("${PROJECT_SOURCE_DIR}/../")

file(GLOB SRCS 
	./*.h
	callback/*.h
	encrypy/*.h
	encrypy/*.cpp
	file/*.h
	file/*.cpp
	framework/*.h
	framework/*.cpp
	hardware/*.h
	hardware/*.cpp
	memory/*.h
	network/*.h
	network/*.cpp
	synchronization/*.h
	synchronization/*.cpp
	thread/*.h
	thread/*.cpp
	time/*.h
	time/*.cpp
	util/*.h
	util/*.cpp
	win32/*.h
	win32/*.cpp
	third_party/chrome/*.h
	third_party/chrome/*.cc
	third_party/convert_utf/*.h
	third_party/convert_utf/*.c
	third_party/modp_b64/*.h
	third_party/modp_b64/*.cc
)

add_definitions(-DOS_WIN -DUNICODE -D_UNICODE -DNOMINMAX)

set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/../../lib)

add_library(${PROJECT_NAME} STATIC ${SRCS})

set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX)